﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Data;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace ComUIControl
{
    public partial class WizardPanel : UserControl
    {
        public WizardPanel()
        {
            this.SetStyle(ControlStyles.SupportsTransparentBackColor, true);
            InitializeComponent();
        }
    
        public void SetBackColor(Color col)
        {
            this.BackColor = col;
            this.labelTitle.BackColor = Color.Transparent;
        }

        public void AddSubTitles(List<string> listText)
        {
            StringBuilder builder = new StringBuilder();
            foreach(string title in listText)
            {
                string strTemp = string.Format("●{0};\n\n",title);
                builder.Append(strTemp);
            }
            builder.Remove(builder.Length-2, 2);
            labelTitle.Text = builder.ToString();
            SetBackColor(Color.FromArgb(45, 222, 195, 111));
        }

        public Size TitleSize()
        {
            return labelTitle.Size;
        }

  
    }
}
